#创建镜像 docker build -t gateway:latest .
#运行镜像 docker run -d -p 8888:8888 -v /dockers/gateway/logs:/application/logs --restart=always --name gateway gateway:latest
FROM openjdk:8
MAINTAINER dizena
ENV APP_DIR=/application APP_NAME=gateway.jar
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
WORKDIR $APP_DIR
ADD ./target/$APP_NAME $APP_NAME
EXPOSE 8888
#VOLUME $APP_DIR
ENTRYPOINT ["java", "-jar", "gateway.jar"]